﻿using Api.Core.Common.Attributes;
using Api.Core.Model;
using Api.Core.Model.Entity;
using Api.Core.Model.Table;
using Api.Core.Model.User;
using Api.Core.Model.ViewModel;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Api.Core.IServices.User
{
    public interface IUserService : IBaseServices<UserTable>
    {

        /// <summary>
        /// 根据UserId获取用户组信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<List<UserEntity>> GetUserGroup(UserViewModel model);



        /// <summary>
        ///  新增用户（带组）
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<BaseResponse<bool>> AddUserWithGroup(UserEntity model);

    }
}
